pub mod cors;
pub mod geoip;
pub mod list;
pub mod stat;

use rocket::Route;

fn sub_routes() -> Vec<Vec<Route>> {
    vec![list::route(), stat::route(), geoip::route(), cors::route()]
}

pub fn route() -> Vec<Route> {
    sub_routes().into_iter().flatten().collect()
}
